export class APIException {
  readonly message: string;

  readonly code: number;

  constructor(data: { message: string; code: number }) {
    this.message = data.message;
    this.code = data.code;
  }
}
